package com.pig4cloud.pig.module.api.entity.wx;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 用户的商家抵扣券对象 user_mer_coupon
 *
 * @author ruoyi
 * @date 2023-03-02
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("user_mer_coupon")
public class UserMerCoupon implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * $column.columnComment
     */
    private Long userId;

    /**
     * $column.columnComment
     */
    private Long couponId;
    private String couponName;
    /**
     * $column.columnComment
     */
    private BigDecimal price;

    /**
     * $column.columnComment
     */
    private BigDecimal dikouPrice;

    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * $column.columnComment
     */
    private Date beginTime;

    /**
     * $column.columnComment
     */
    private Date endTime;

    /**
     * $column.columnComment
     */
    private Long state;

    /**
     * $column.columnComment
     */
    private Long merId;
    /**
     * $column.columnComment
     */
    private String merName;
    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private Integer userNo;
    @TableField(exist = false)
    private String faceUrl;

}
